<header class="am-topbar am-topbar-fixed-top">
    <div class="am-container">
        <h1 class="am-topbar-brand">
            <a href="#">Amaze UI</a>
        </h1>

        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

        <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav">
          <li class="am-active"><a href="#">首页</a></li>
          <li class="am-dropdown" data-am-dropdown>
            <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
              开源项目 <span class="am-icon-caret-down"></span>
            </a>
            <ul class="am-dropdown-content">
              <li class="am-dropdown-header">标题</li>
              <li><a href="#">1. 去月球</a></li>
              <li class="am-active"><a href="#">2. 去火星</a></li>
              <li><a href="#">3. 还是回地球</a></li>
              <li class="am-disabled"><a href="#">4. 下地狱</a></li>
              <li class="am-divider"></li>
              <li><a href="#">5. 桥头一回首</a></li>
            </ul>
          </li>
          <li class="am-dropdown" data-am-dropdown>
            <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
              问答 <span class="am-icon-caret-down"></span>
            </a>
            <ul class="am-dropdown-content">
              <li class="am-dropdown-header">标题</li>
              <li><a href="#">1. 去月球</a></li>
              <li class="am-active"><a href="#">2. 去火星</a></li>
              <li><a href="#">3. 还是回地球</a></li>
              <li class="am-disabled"><a href="#">4. 下地狱</a></li>
              <li class="am-divider"></li>
              <li><a href="#">5. 桥头一回首</a></li>
            </ul>
          </li>
          <li><a href="">代码</a></li>
          <li><a href="">博客</a></li>
          <li><a href="">资讯</a></li>
          <li><a href="">招聘</a></li>
        </ul>


        @if(Auth::check())
          <div class="am-topbar-right">
            <a href="{{URL::to('user/logout')}}" class="am-btn am-btn-primary am-topbar-btn am-btn-sm">退出</a>
          </div>
          <div class="am-topbar-right">
            <div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
              <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>{{Auth::user()->username}}的空间 <span class="am-icon-caret-down"></span></button>
              <ul class="am-dropdown-content">
                <li><a href="{{URL::to('user/logout')}}">进入博客</a></li>
                <li><a href="{{URL::to('user/message')}}">站内留言</a></li>
                <li><a href="{{URL::to('user/logout')}}">快速发布</a></li>
                <li><a href="{{URL::to('user/logout')}}">我的讨论记录</a></li>
                <li><a href="{{URL::to('user/index/logout')}}">我分享的代码</a></li>
                <li><a href="{{URL::to('user/index/logout')}}">我关注的人</a></li>
                <li><a href="{{URL::to('user/index/logout')}}">我的收藏夹</a></li>
                <li><a href="{{URL::to('user/index/logout')}}">个人资料修改</a></li>
                <li><a href="{{URL::to('user/index/logout')}}">更改我的头像</a></li>
              </ul>
            </div>
          </div>
        @else
        <div class="am-topbar-right">
          <a href="{{URL::to('user/login')}}" class="am-btn am-btn-primary am-topbar-btn am-btn-sm am-active">登录</a>
        </div>
        <div class="am-topbar-right">
          <a href="{{URL::to('user/register')}}" class="am-btn am-btn-primary am-topbar-btn am-btn-sm am-active">注册</a>
        </div>
        @endif
        </div>
    </div>
</header>